import request from '@/utils/request'


// 获取所有逆变器
export function getAllInveters(params) {
  return request({
      url: '/stationBoard/equipmentList',
      method: 'GET',
      params
  })
}
// 逆变器统计
export function getpsStatistic(params) {
    return request({
        url: '/statistic/psStatistic',
        method: 'GET',
        params
    })
}
// 逆变器原始数据导出
export function getpsDataExport(params) {
    return request({
        url: '/statistic/psDataExport',
        method: 'POST',
        responseType:'blob',
        params
    })
}
// 逆变器导出
//
export function getpsStatisticExport(params) {
    return request({
        url: '/statistic/psStatisticExport',
        method: 'POST',
        responseType:'blob',
        params
    })
}


// 客户管理导出
export function getCustomerExport(params) {
    return request({
        url: '/system/user/terminalExport',
        method: 'POST',
        responseType:'blob',
        params
    })
}

// 数据分析页面接口=======
// 获取电站列表
export function getstationList(params) {
    return request({
        url: '/statistic/stationList',
        method: 'GET',
        params
    })
}
// 获取逆变器列表
export function getpsList(params) {
    return request({
        url: '/statistic/psList',
        method: 'GET',
        params
    })
}
// 获取逆变器列表显示图表
export function getpsCompare(params) {
    return request({
        url: '/statistic/psCompare',
        method: 'GET',
        params
    })
}

// 数据分析页面逆变器导出
export function getExport(params) {
    return request({
        url: '/statistic/psCompareExport',
        method: 'POST',
        responseType:'blob',
        params
    })
}

